//
//  MyBarViewController.m
//  Travel
//
//  Created by xiaoai on 15/11/20.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "MyBarViewController.h"

@interface MyBarViewController ()

@end

@implementation MyBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"back" style:UIBarButtonItemStylePlain target:self action:@selector(BackToMySelf:)];
    
}

-(void)BackToMySelf:(UIBarButtonItem *)barBtn{
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
